package com.chendx.store.goods.controller;

import com.chendx.model.common.dtos.PageRequestDto;
import com.chendx.model.common.dtos.ResponseResult;
import com.chendx.store.goods.service.GoodsService;
import com.chendx.store.api.goods.SpecialControllerApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 专场
 * Created by chendx on 2022/4/18.
 */
@RestController
@RequestMapping("/api/special")
public class SpecialController implements SpecialControllerApi {

    @Autowired
    private GoodsService goodsService;


    @Override
    @PostMapping("/loadHighData")
    public ResponseResult loadHighData(@RequestBody PageRequestDto dto) {

        return goodsService.loadHighData(dto);
    }


    @Override
    @GetMapping("/loadSpecialData")
    public ResponseResult loadSpecialData() {

        return goodsService.loadSpecialData();
    }
}
